.class Lorg/microemu/android/device/AndroidDevice$1;
.super Ljava/lang/Object;
.source "AndroidDevice.java"

# interfaces
.implements Lorg/microemu/device/ui/UIFactory;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/microemu/android/device/AndroidDevice;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/microemu/android/device/AndroidDevice;


# direct methods
.method constructor <init>(Lorg/microemu/android/device/AndroidDevice;)V
    .locals 0
    .parameter

    .prologue
    .line 73
    iput-object p1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public createAlertUI(Ljavax/microedition/lcdui/Alert;)Lorg/microemu/device/ui/AlertUI;
    .locals 2
    .parameter "alert"

    .prologue
    .line 93
    new-instance v0, Lorg/microemu/android/device/ui/AndroidAlertUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidAlertUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Alert;)V

    return-object v0
.end method

.method public createCanvasUI(Ljavax/microedition/lcdui/Canvas;)Lorg/microemu/device/ui/CanvasUI;
    .locals 2
    .parameter "canvas"

    .prologue
    .line 97
    new-instance v0, Lorg/microemu/android/device/ui/AndroidCanvasUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidCanvasUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Canvas;)V

    return-object v0
.end method

.method public createCommandUI(Ljavax/microedition/lcdui/Command;)Lorg/microemu/device/ui/CommandUI;
    .locals 2
    .parameter "command"

    .prologue
    .line 101
    new-instance v0, Lorg/microemu/android/device/ui/AndroidCommandUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidCommandUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Command;)V

    return-object v0
.end method

.method public createEventDispatcher(Ljavax/microedition/lcdui/Display;)Lorg/microemu/device/ui/EventDispatcher;
    .locals 3
    .parameter "display"

    .prologue
    .line 76
    new-instance v0, Lorg/microemu/android/device/AndroidDevice$1$1;

    invoke-direct {v0, p0}, Lorg/microemu/android/device/AndroidDevice$1$1;-><init>(Lorg/microemu/android/device/AndroidDevice$1;)V

    .line 85
    .local v0, eventDispatcher:Lorg/microemu/device/ui/EventDispatcher;
    new-instance v1, Ljava/lang/Thread;

    const-string v2, "event-thread"

    invoke-direct {v1, v0, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V

    .line 86
    .local v1, thread:Ljava/lang/Thread;
    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/Thread;->setDaemon(Z)V

    .line 87
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 89
    return-object v0
.end method

.method public createFormUI(Ljavax/microedition/lcdui/Form;)Lorg/microemu/device/ui/FormUI;
    .locals 2
    .parameter "form"

    .prologue
    .line 105
    new-instance v0, Lorg/microemu/android/device/ui/AndroidFormUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidFormUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/Form;)V

    return-object v0
.end method

.method public createListUI(Ljavax/microedition/lcdui/List;)Lorg/microemu/device/ui/ListUI;
    .locals 2
    .parameter "list"

    .prologue
    .line 109
    new-instance v0, Lorg/microemu/android/device/ui/AndroidListUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidListUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/List;)V

    return-object v0
.end method

.method public createTextBoxUI(Ljavax/microedition/lcdui/TextBox;)Lorg/microemu/device/ui/TextBoxUI;
    .locals 2
    .parameter "textBox"

    .prologue
    .line 113
    new-instance v0, Lorg/microemu/android/device/ui/AndroidTextBoxUI;

    iget-object v1, p0, Lorg/microemu/android/device/AndroidDevice$1;->this$0:Lorg/microemu/android/device/AndroidDevice;

    invoke-static {v1}, Lorg/microemu/android/device/AndroidDevice;->access$000(Lorg/microemu/android/device/AndroidDevice;)Lorg/microemu/android/MicroEmulatorActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lorg/microemu/android/device/ui/AndroidTextBoxUI;-><init>(Lorg/microemu/android/MicroEmulatorActivity;Ljavax/microedition/lcdui/TextBox;)V

    return-object v0
.end method
